import 'package:azlistview/azlistview.dart';
import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/car_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class CarEntity extends ISuspensionBean {
  late String id;
  late String carNo;
  late String carModel;
  late String carModelName;

  String? tagIndex;
  String? namePinyin;
  bool isSelect = false;

  CarEntity();

  factory CarEntity.fromJson(Map<String, dynamic> json) => $CarEntityFromJson(json);

  Map<String, dynamic> toJson() => $CarEntityToJson(this);

  @override
  String toString() => json.encode(this);

  @override
  String getSuspensionTag() => tagIndex!;
}
